.switch {
    width: 100px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    z-index: 1002;
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.switch-rq {
    width: 150%;
    height: 30px;
    position: relative;

}

.error-switch {
    background-color: #f56c6cc9;
    width: 80px;
    height: 30px;
    color: #ffffff;
    text-align: center;
    line-height: 30px;
    border-radius: 8px;
    font-weight: bold;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 1px 1px 1px #888888;
    display: inline-block;
    cursor: pointer;
}

.error-switch:hover {
    background-color: #f56c6cf2;
}

.switch-not-allow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    border-radius: 8px;
    height: 32px;
    cursor: not-allowed;
    z-index: 2000;
    background-color: rgba(242, 246, 252, 0.7);
}

/*.switch-rq:hover {*/
/*animation:  changebox 1s ease-in-out;*/

/*}*/

.on {
    left: 0;
}

.off {
    left: -50px;
}

@keyframes switchOff {
    50% {
        left: -50px;
    }
    100% {
        left: -50px;
    }

}

.offToOn {
    animation: switchOff 1s ease-in-out forwards;
}

@keyframes switchOn {
    50% {
        left: -50px;
    }
    100% {
        left: 0;
    }

}

.switch-block {
    width: 50px;
    height: 30px;
}

.switch-none, .switch-on, .switch-off {
    display: inline-block;
    width: 50px;
    height: 30px;
    float: left;
    z-index: 1001;
    cursor: pointer;
}

.switch-on, .switch-off {
    line-height: 30px;
    text-align: center;
    color: #ffffff;
}

.switch-none {
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #f5f5f5;
}

.switch-on {
    background-image: linear-gradient(to bottom, #0044cc, #0088cc);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-repeat: repeat-x;
}

.switch-off {
    background-image: linear-gradient(to bottom, #e6e6e6, #ffffff);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-repeat: repeat-x;
    color: #000000;
}